<title>User | Login</title>
<script>
    $("ul li").each(function() {
        if ($(this).attr("key") == "login") {
            $(this).addClass("active");
        }
    });
</script>
<br /><br />
<div id="view-content">
    <div class="row-fluid">
        <div class="span4 well">
            <div class="span7">
                <h3><?=$this->translate('login');?></h3>
            </div>
            <div class="span5">
                <h3><a style="float: right;" class="btn btn-warning" href="<?= $this->url(array(), 'userregister'); ?>"><?=$this->translate('new_user');?></a></h3>
            </div><br><br><hr>
            <?php if ($this->formErrors != null) { ?>
                <div class="alert alert-error">
                    <button type="button" class="close" data-dismiss="alert">&times;</button>
                    <?= $this->formErrors[0] ?>
                </div>
            <?php } ?>
            <?php echo $this->signInForm; ?>
            <?php
            if ($this->isFacebookActivated):
                ?>
                <hr>
                <center><b><?=$this->translate('or');?></b></center><br> 
                <a class="btn btn-large btn-primary span12" href="<?= $this->fbLoginUrl ?>"><img src="http://<?= $_SERVER['SERVER_NAME'] ?>/bootstrap/img/fblogo_29.png"> &nbsp;&nbsp; <?=$this->translate('login_with_fb');?></a><br><hr>                
                <?php
            endif;
            ?>
            <a class="btn btn-info" href="<?= $this->url(array(), 'userforget'); ?>"><?=$this->translate('forgot_password');?></a>            
        </div>
    </div>    
</div>